package com.ruoyi.mall.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 商品分类对象 mall__cetegory
 * 
 * @author ruoyi
 * @date 2020-05-19
 */
public class MallCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品分类Id */
    private Long categoryId;

    /** 商品分类名称 */
    @Excel(name = "商品分类名称")
    private String categoryName;

    /** 上级分类 */
    @Excel(name = "上级分类")
    private Long pid;

    /** 排序值 */
    @Excel(name = "排序值")
    private Long sort;
    /** 上级分类 */
    @Excel(name = "图标")
    private String icon;
    private List<MallProperty> properties;
    public Long getSort() {
        return sort;
    }
    public List<MallProperty> getProperties() {
        return properties;
    }

    public void setProperties(List<MallProperty> properties) {
        this.properties = properties;
    }
    public void setSort(Long sort) {
        this.sort = sort;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setCategoryName(String categoryName)
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName()
    {
        return categoryName;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("pid", getPid())
            .toString();
    }
}
